<template>
  <div class="dest">
    <div class="dest-text">当季热门目的地</div>
    <div class="list">
      <div class="list-item" v-for="item of vacationlist" :key="item.id">
        <img class="images" :src="item.imgUrl" />
        <div class="list-inner">
          <p>{{item.nation}}</p>
          <p class="list-inner-text">{{item.likes}}</p>
        </div>
      </div>
    </div>
    <div class="dest-travel">
      <div class="travelplace" v-for="item of palce" :key="item.id">
        <div>{{item.palce}}</div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "VacationDest",
  props: {
    vacationlist: Array,
    palce: Array
  },
  data() {
    return {};
  }
};
</script>
<style lang="stylus" scoped>
.dest {
  position: absolute;
  top: 4.2rem;
  width: 100%;
  padding: 0.2rem;
  box-sizing: border-box;
  background #fff
  margin-top .1rem
  overflow: hidden;
}

.dest-text {
  height: 0.6rem;
  line-height .6rem
  font-size: 0.32rem;
  color: #212121;
  font-weight: 400;
  margin 0 .1rem .2rem .1rem
  padding-left .1rem
}

.list {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
}

.list-item {
  position: relative;
}

.images {
  position: relative;
  display: inline-block;
  width: 2.16rem;
  height: 1.9rem;
  text-align: center;
  margin-bottom: 0.6rem;
  vertical-align: top;
  z-index: 1;
  background-size: cover;
}

.list-inner {
  z-index: 2;
  position: absolute;
  width: 1.4rem;
  height: 1rem;
  background: rgba(255, 255, 255, 0.95);
  color: #212121;
  left: 0.4rem;
  bottom: 0.3rem;
  text-align: center;
  line-height: 1rem;
  box-shadow: 0 .04rem .08rem 0 rgba(0, 0, 0, 0.1);
}

.list-inner-text {
  position: absolute;
  top: 0.75rem;
  left: 0.25rem;
  color: #616161;
  display: inline-block;
  font-size: 0.2rem;
  overflow: hidden;
  line-height: 0.2rem;
}

.dest-travel {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  flex-wrap: wrap;
  margin-top .4rem
}

.travelplace {
  height 0.5rem
  width 1.5rem
  line-height: 0.5rem;
  text-align: center;
  font-size: .24rem;
  color: #212121;
  margin-bottom .2rem
  box-shadow: 0 0 .1rem 0 rgba(0, 0, 0, 0.1);
}
</style>